<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="utf-8" />
    <title>HTML Preview (markdown to html) - Editor.md examples</title>
    <link rel="shortcut icon" href="https://pandao.github.io/editor.md/favicon.ico" type="image/x-icon" />
</head>

<body>
    <div style="position:absolute;top:100px;left:100px; width: 700px; height:600px;">
        <div id="layout" style="width:800px;height:600px;">
        </div>
    </div>
   
    <a href="javascript:setVaue();">setValue</a>
    <a href="javascript:destroy();">destroy</a>

    <script src="/scripts/jquery/jquery.min.js"></script>
    <script src="/yqwin/src/yq.mdview.js"></script>
    <script src="/yqwin/src/yq.fun.pub.js"></script>

    <script type="text/javascript">
        $(function () {
            $.get("/scripts/editor.md/examples/test.md", function (markdown) {
                $("#layout").yqMDView({"value":markdown});
            });
        });

        function setVaue() {
            $.get("/scripts/editor.md/examples/test.md", function (markdown) {
                $("#layout").yqMDView("setValue", markdown);
            });
        }
        function destroy() {
            $("#layout").yqMDView("destroy");
        }
    </script>


</body>

</html>